import { registerPanelItemProvider } from '@ibiz-template/runtime';
import { withInstall } from '@ibiz-template/vue3-util';
import { App } from 'vue';
import { PanelRawItem } from './panel-rawitem';
import { PanelRawItemProvider } from './panel-rawitem.provider';

export * from './panel-rawitem.provider';
export * from './panel-rawitem.controller';

export const IBizPanelRawItem = withInstall(PanelRawItem, function (v: App) {
  v.component(PanelRawItem.name, PanelRawItem);
  registerPanelItemProvider('RAWITEM', () => new PanelRawItemProvider());
});

export default IBizPanelRawItem;
